package com.fxc.gtm.lab.work.controller;

import com.fxc.gtm.aac.work.api.bo.SysUserBo;
import com.fxc.gtm.lab.work.service.SysUserTestService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
@RequestMapping("/test")
public class SysUserTestController {

    @Autowired
    private SysUserTestService sysUserTestService;

    @GetMapping("/test1")
    public SysUserBo getUserInfoById() {
        try {
            long userId = 1L;
            SysUserBo sysUserBo =
                    sysUserTestService.getUserInfoById(userId);
            return sysUserBo;
        } catch (Exception ex) {
            throw ex;
        }
    }

}
